import qdarkstyle
from PyQt5.QtWidgets import QMessageBox

from src.user.UserAlter_UI import Ui_Form
from src.user.AlterSuccess_win import AlterSuccess_Win
from PyQt5 import QtWidgets


class UserAlter_Win(QtWidgets.QMainWindow,Ui_Form):
    def __init__(self,User_Name=0,parent=None):
        super(UserAlter_Win, self).__init__(parent=parent)
        #ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID('')
        self.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
        #self.setWindowIcon(icon)
        self.setupUi(self)
        self.LoginSignal=False
        self.User_Name=User_Name


    def myAlterSuccess(self):
        if len(self.lineEdit_5.text())!=0:
            QMessageBox.information(self, '修改成功', '您已修改成功')
        else:
            QMessageBox.critical(self, '错误', '请输入修改密码')







